package my.weather;

import my.climbing.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;
import android.view.*;

public class MtProjectActivity extends Activity implements View.OnClickListener {
	Button b1, b2, b3, b4;
	String loc = "";

	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.mtinfo);
		b1 = (Button) findViewById(R.id.mtinfo_button1);
		b2 = (Button) findViewById(R.id.mtinfo_button2);
		b3 = (Button) findViewById(R.id.mtinfo_button3);
		b4 = (Button) findViewById(R.id.mtinfo_button4);
		b1.setOnClickListener(this);
		b2.setOnClickListener(this);
		b3.setOnClickListener(this);
		b4.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {

		if (v.getId() == R.id.mtinfo_button1) {
			Intent i = new Intent();
			i.setClass(this, SeorakInfo.class);

			startActivity(i);
		}
		if (v.getId() == R.id.mtinfo_button2) {
			Intent i = new Intent();
			i.setClass(this, JiriInfo.class);

			startActivity(i);
		}
		if (v.getId() == R.id.mtinfo_button3) {

			Intent i = new Intent();
			i.setClass(this, BuckhansanInfo.class);

			startActivity(i);
		}

		if (v.getId() == R.id.mtinfo_button4) {
			loc = "Seoul";
			Intent i = new Intent();
			i.setClass(this, WeatherActivity.class);
			i.putExtra("loc", loc);
			startActivity(i);
		}
	}
}